projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c535ad4
)
board: common: vid: Add board specific vdd adjust API
author
Rajesh Bhagat
<
[email protected]
>
Wed, 17 Jan 2018 10:43:02 +0000
(16:13 +0530)
committer
York Sun
<
[email protected]
>
Tue, 23 Jan 2018 19:19:25 +0000
(11:19 -0800)
Adds a board specific API namely board_adjust_vdd which
is required to define the board VDD adjust settings.
Signed-off-by: Ashish Kumar <
[email protected]
>
Signed-off-by: Rajesh Bhagat <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
board/freescale/common/vid.c
patch
|
blob
|
history
diff --git
a/board/freescale/common/vid.c
b/board/freescale/common/vid.c
index bf63ce007aade879687130fea005e66f1782085f..89904c199c4bdc0cd3ac13a963d633c600cf8a17 100644
(file)
--- a/
board/freescale/common/vid.c
+++ b/
board/freescale/common/vid.c
@@
-33,6
+33,14
@@
int __weak board_vdd_drop_compensation(void)
return 0;
}
+/*
+ * Board specific settings for specific voltage value
+ */
+int __weak board_adjust_vdd(int vdd)
+{
+ return 0;
+}
+
/*
* Get the i2c address configuration for the IR regulator chip
*
@@
-470,6
+478,11
@@
int adjust_vdd(ulong vdd_override)
vdd_last = set_voltage(i2caddress, vdd_current);
}
+ if (board_adjust_vdd(vdd_target) < 0) {
+ ret = -1;
+ goto exit;
+ }
+
if (vdd_last > 0)
printf("VID: Core voltage after adjustment is at %d mV\n",
vdd_last);